<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%@include file="common.jsp" %>
<script type="text/javascript">
		$(function(){
			$(":text.textbox-text:first")[0].focus();
			$(":text,:password").keypress(function(e){
				if(e.which == 13){
					$("#form1").trigger("submit");
				}
			});
			$("#btn").click(function(){
				$("#form1").trigger("submit");
				return false;
			});
		})
	</script>

</head>
<body>
<div style="width:500px;height:400px; margin: 100px auto;">
  	<form id="form1" action="sysUser/login" method="post">
    <div class="easyui-panel" title="简单的权限系统登录" fit="true" style="padding:50px 0px;">
    	<span style="color:red;">${sessionScope.error }</span>
    	<c:remove var="error" scope="session"/>
    	<div class="form-item">
    		<label class="iblock">用户名:</label>
    		<input type="text" name="username" data-options="iconCls:'icon-man',iconAlign:'left'" autofocus class="ipt easyui-textbox" />
    	</div>
    	<div class="form-item">
    		<label class="iblock">密码:</label>
    		<input type="password" id="pwd" data-options="iconCls:'icon-lock',iconAlign:'left'" name="password" class="easyui-textbox ipt"/>
    	</div>
    	<div class="form-item">
    		<label class="iblock"></label>
    		<a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'">登 录</a>  
    	</div>
    </div>
    </form>
    </div>

</body>
</html>